package studio.raptor.ddal.core.engine.plan.node.impl.common;

import studio.raptor.ddal.core.engine.ProcessContext;
import studio.raptor.ddal.core.engine.plan.node.ForkingNode;

/**
 * 是否为批处理的addBatch动作,后续直接结束，不做结果集处理
 * Created by liujy on 2017/10/14.
 */
public class IsAddBatch  extends ForkingNode {

    @Override
    protected int judge(ProcessContext context) {
        if (context.getStatementContext().isAddBatch()) return 1;
        else return 0;
    }

}
